package com.copa.module.system.service;

import com.copa.domain.ResponseDto;
import com.copa.module.system.domain.dto.TradeDto;
import com.copa.module.system.domain.entity.TradeEntity;
import com.copa.module.system.domain.vo.TradeVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author copa
 * @createDate 2021-02-26 13:59
 * @function
 */
public interface TradeService {
    ResponseDto<List<TradeDto>> chart(TradeVo tradeVo);

    Long findAddTotalOrderNumByTime();

    Long findAddOrderGoodsNumByTime();

    Long findAddPayTotalOrderNumByTime();

    Long findAddPayOrderGoodsNumByTime();

    Long findRefundOrderGoodsNumByTime();

    BigDecimal findIncomeByTime();

    BigDecimal findRefundByTime();

    Long findAddSaleGoodsNumByTime();

    Long findRefundSaleGoodsNumByTime();

    void insert(TradeEntity trade);
}
